/**
 * @description 分页数据
 *
 */
export interface Page<T> {
  total: number
  list: T
  pageNum: number
  pageSize: number
  pages: number
  size: number
}

/**
 * @description 响应结果
 */
export interface Res<T> {
  code: number
  msg: string
  data: T
}

export type R<T> = Promise<Res<T>>
export type P<T> = Promise<Res<Page<Array<T>>>>
